for x in range(2): |
print("-") |
print("+") |
for x in range(2): |
    for x in range(2): |
        print("-") |
    print("+") |
for x in range(2): |
1 | for x in range(2): |
2 |     for x in range(2): |
3 |         print("-") |
4 |     print("+") |
5 |      |
for x in range(2): |
print("+") |
print("-") |
for x in range(2): |
for x in range(2): |
    print("+") |
        print("-") |
    for x in range(2): |
1 | for x in range(2): |
2 |     print("+") |
3 |     for x in range(2): |
4 |         print("-") |
5 |      |
for x in range(3): |
for x in range(2): |
print("b") |
for x in range(2): |
print("a") |
    for x in range(3): |
for x in range(2): |
        print("b") |
    for x in range(2): |
        print("a") |
1 | for x in range(2): |
2 |     for x in range(3): |
3 |         print("a") |
4 |     for x in range(2): |
5 |         print("b") |
print("a") |
for x in range(2): |
for x in range(2): |
print("b") |
for x in range(2): |
        print("a") |
    for x in range(2): |
    for x in range(2): |
        print("b") |
for x in range(2): |
1 | for x in range(2): |
2 |     for x in range(2): |
3 |         print("a") |
4 |     for x in range(2): |
5 |         print("b") |
for x in range(1,6): |
multi = x * y |
multi = str(multi) |
print(strx + " * " + y + " = " + multi) |
strx = str(x) |
for y in range(10): |
print("The " + strx + " Times Table") |
y = str(y) |
for x in range(1,6): |
    multi = x * y |
    multi = str(multi) |
    print(strx + " * " + y + " = " + multi) |
  strx = str(x) |
  for y in range(10): |
  print("The " + strx + " Times Table") |
    y = str(y) |
1 | for x in range(1,6): |
2 |   strx = str(x) |
3 |   print("The " + strx + " Times Table") |
4 |   for y in range(10): |
5 |     multi = x * y |
6 |     multi = str(multi) |
7 |     y = str(y) |
8 |     print(strx + " * " + y + " = " + multi) |
strx = str(x) |
multi = x * y |
for x in range(1,10): |
print("The " + strx + " Times Table") |
y = str(y) |
multi = str(multi) |
for y in range(5): |
print(strx + " * " + y + " = " + multi) |
  strx = str(x) |
    multi = x * y |
for x in range(1,10): |
  print("The " + strx + " Times Table") |
    y = str(y) |
    multi = str(multi) |
  for y in range(5): |
    print(strx + " * " + y + " = " + multi) |
1 | for x in range(1,10): |
2 |   strx = str(x) |
3 |   print("The " + strx + " Times Table") |
4 |   for y in range(5): |
5 |     multi = x * y |
6 |     multi = str(multi) |
7 |     y = str(y) |
8 |     print(strx + " * " + y + " = " + multi) |
9 |      |
for x in range(3): |
print("**") |
for x in range(4): |
print("||") |
    for x in range(3): |
        print("**") |
for x in range(4): |
    print("||") |
1 | for x in range(4): |
2 |     for x in range(3): |
3 |         print("**") |
4 |     print("||") |
5 |      |
for x in range(4): |
print("^^^") |
for x in range(3): |
print("___") |
print("vvv") |
for x in range(4): |
    print("^^^") |
    for x in range(3): |
    print("___") |
        print("vvv") |
1 | for x in range(4): |
2 |     print("^^^") |
3 |     for x in range(3): |
4 |         print("vvv") |
5 |     print("___") |
for x in range(3): |
for x in range(4): |
print("___") |
print("^^^") |
print("vvv") |
    for x in range(3): |
for x in range(4): |
    print("___") |
    print("^^^") |
        print("vvv") |
1 | for x in range(4): |
2 |     print("^^^") |
3 |     for x in range(3): |
4 |         print("vvv") |
5 |     print("___") |
print("<<") |
if y % 2 == 0: |
print(x) |
for x in range(4): |
for y in range(4): |
else: |
print(">>") |
        print("<<") |
    if y % 2 == 0: |
        print(x) |
    for x in range(4): |
for y in range(4): |
    else: |
        print(">>") |
1 | for y in range(4): |
2 |     if y % 2 == 0: |
3 |         print("<<") |
4 |     else: |
5 |         print(">>") |
6 |     for x in range(4): |
7 |         print(x) |
for y in range(2): |
stry = str(y) |
print(strx + " " + stry) |
strx = str(x) |
for x in range(5): |
    for y in range(2): |
        stry = str(y) |
        print(strx + " " + stry) |
        strx = str(x) |
for x in range(5): |
1 | for x in range(5): |
2 |     for y in range(2): |
3 |         strx = str(x) |
4 |         stry = str(y) |
5 |         print(strx + " " + stry) |
stry = str(y) |
strx = str(x) |
print(strx + " " + stry) |
for x in range(2): |
for y in range(5): |
        stry = str(y) |
        strx = str(x) |
        print(strx + " " + stry) |
    for x in range(2): |
for y in range(5): |
1 | for y in range(5): |
2 |     for x in range(2): |
3 |         strx = str(x) |
4 |         stry = str(y) |
5 |         print(strx + " " + stry) |
for y in range(4): |
print(" ") |
l = l * -1 |
print(l*".") |
for x in range(7): |
l = -3 + x |
if l < 0: |
l = 4 - l |
for y in range(4): |
    print(" ") |
            l = l * -1 |
        print(l*".") |
    for x in range(7): |
        l = -3 + x |
        if l < 0: |
        l = 4 - l |
1 | for y in range(4): |
2 |     for x in range(7): |
3 |         l = -3 + x |
4 |         if l < 0: |
5 |             l = l * -1 |
6 |         l = 4 - l |
7 |         print(l*".") |
8 |     print(" ") |
for y in range(100): |
r = random.randint(1,6) |
else: |
s = s + "." |
s="" |
import random |
for x in range(10): |
print(s) |
s = s + " " |
if r == 1: |
    for y in range(100): |
        r = random.randint(1,6) |
        else: |
            s = s + "." |
    s="" |
import random |
for x in range(10): |
    print(s) |
            s = s + " " |
        if r == 1: |
1 | import random |
2 | for x in range(10): |
3 |     s="" |
4 |     for y in range(100): |
5 |         r = random.randint(1,6) |
6 |         if r == 1: |
7 |             s = s + "." |
8 |         else: |
9 |             s = s + " " |
10 |     print(s) |
11 |      |